<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
var ws = new WebSocket("ws://localhost:8080/_connect")
    ws.onopen = function () {
        ws.send("test")
    }
    ws.onmessage = function () {
        console.log(arguments)
    }
</script>